package com.jackiechancinema.ssm.dao;

import com.jackiechancinema.ssm.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminDao {
    Admin selectByName(String name);
    List<Admin> selectAll();
    List<Admin> selectBySerch(Admin admin);
    int insert(Admin admin);
    int update(Admin admin);
    int deleteById(int id);
    int updatePassword(@Param("id") int id, @Param("pass") String password);
    int deleteBatch(List<Integer> list);
    List<Admin> search(@Param("name") String name, @Param("type") int type, @Param("flag") int flage);
    int insertBatch(List<Admin> admins);
}
